import { ProFormSwitch, ProFormText } from '@ant-design/pro-form';

export default () => {
  return (
    <>
      <ProFormText name="name" label="名称" rules={[{ required: true, message: '请填写名称' }]} />
      <ProFormText
        name="registry"
        label="地址"
        rules={[{ required: true, message: '请填写地址' }]}
      />
      <ProFormText name="username" label="用户名" />
      <ProFormText.Password name="password" label="密码" />
      <ProFormSwitch fieldProps={{ defaultChecked: true }} name="enable" label="启用" />
    </>
  );
};
